package com.ctshk.rpc.localfun.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;

/**
 * @Description
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/3/24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_local_fun_product_channel_offline_self_custom")
@ApiModel(value="LocalFunProductChannelOfflineSelfCustom对象", description="产品线下自营自定义权限")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LocalFunProductChannelOfflineSelfCustom extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "产品ID")
    private Long productId;

    @ApiModelProperty(value = "线下权限ID")
    private Long offlineId;

    @ApiModelProperty(value = "勾选人/部门类型")
    private Integer checkType;

    @ApiModelProperty(value = "关联ID")
    private Long relationId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "加幅类型")
    private Integer adjustType;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "百分比")
    private Double percent;

    @ApiModelProperty(value = "是否设置限购")
    private Integer isLimit;

    @ApiModelProperty(value = "限购数量")
    private Integer limitNum;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

}
